/*
 * Copyright (C) 2020  Prasoon Joshi
 *
 *     This program is free software: you can redistribute it and/or modify
 *     it under the terms of the GNU General Public License as published by
 *     the Free Software Foundation, either version 3 of the License, or
 *     (at your option) any later version.
 *
 *     This program is distributed in the hope that it will be useful,
 *     but WITHOUT ANY WARRANTY; without even the implied warranty of
 *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *     GNU General Public License for more details.
 *
 *     You should have received a copy of the GNU General Public License
 *     along with this program.  If not, see <https://www.gnu.org/licenses/>.
 */

package graphql

import sangria.macros.derive._
import sangria.schema.{Argument, IDType}
import sangria.marshalling.playJson._
import play.api.libs.json._

object SchemaInputObjects {

  val IdArg = Argument("id", IDType, description = "Id of the object.")
  case class EadInput(id: String)

  implicit val EadInputType = deriveInputObjectType[EadInput](
    InputObjectTypeName("EadInput")
  )
  implicit val EadInputFormat = Json.format[EadInput]

//  implicit val EadInputType = deriveInputObjectType[generated.Ead](
//    InputObjectTypeName("findingAid")
//  )
//  implicit val ControlInputType = deriveInputObjectType[generated.Control](
//    InputObjectTypeName("control")
//  )
//  implicit val RecordIdInputType = deriveInputObjectType[generated.Recordid](
//    InputObjectTypeName("recordId")
//  )
}
